<?php
    require_once("./conf/conf.mod.php");
    require_once("./lib/class.nh_Member.php");
    if($_REQUEST['lg'] == 'login') {
        $mem = nh_Member::getInstance();
        $mem->init();
        
        $userID = $_POST['user_id'];
        $passwd = $_POST['passwd'];

        if($mem->login($userID,$passwd)){
            echo "login ok for guest/geust<br>";
            echo $mem->getProperty('email');
            echo "<a href=$_SERVER[PHP_SELF]?logout=1>logout echo</a> ";
        } else {
            echo "<script>alert('Login Again');location.replace('login.php')</script>";
        }
    }else{ 
    } 
?>